package com.study.model.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.sql.Timestamp;
import java.util.Date;

/**
 * The persistent class for the complaint database table.
 * 
 */
@Entity
@NamedQuery(name = "Complaint.findAll", query = "SELECT c FROM Complaint c")
public class Complaint implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name = "com_id")
	private int comId;

	@Column(name = "com_complaint")
	private String comComplaint;


	@Temporal(TemporalType.DATE)
	@Column(name = "com_date")
	private Date comDate;


	@Column(name = "com_feedback")
	private String comFeedback;

	@Column(name = "com_name")
	private String comName;

	@Column(name = "com_treati")
	private String comTreati;
	
	@Column(name = "is_show")
	private int isShow;
	// bi-directional many-to-one association to Customer
	@ManyToOne
	@JoinColumn(name = "cus_id")
	private Customer customer;

	// bi-directional many-to-one association to Dictionary
	@ManyToOne
	@JoinColumn(name = "com_classify")
	private Dictionary dictionary1;

	// bi-directional many-to-one association to Dictionary
	@ManyToOne
	@JoinColumn(name = "com_degree")
	private Dictionary dictionary2;

	// bi-directional many-to-one association to Dictionary
	@ManyToOne
	@JoinColumn(name = "com_result")
	private Dictionary dictionary3;

	// bi-directional many-to-one association to User
	@ManyToOne
	@JoinColumn(name = "user_id")
	private User user;

	public Complaint() {
	}

	public int getComId() {
		return this.comId;
	}

	public void setComId(int comId) {
		this.comId = comId;
	}

	public String getComComplaint() {
		return this.comComplaint;
	}

	public void setComComplaint(String comComplaint) {
		this.comComplaint = comComplaint;
	}

	public Date getComDate() {
		return this.comDate;
	}

	public void setComDate(Date comDate) {
		this.comDate = comDate;
	}


	public String getComFeedback() {
		return this.comFeedback;
	}

	public void setComFeedback(String comFeedback) {
		this.comFeedback = comFeedback;
	}

	public String getComName() {
		return this.comName;
	}

	public void setComName(String comName) {
		this.comName = comName;

	}

	public String getComTreati() {
		return this.comTreati;
	}

	public void setComTreati(String comTreati) {
		this.comTreati = comTreati;
	}

	public int getIsShow() {
		return this.isShow;
	}

	public void setIsShow(int isShow) {
		this.isShow = isShow;
	}

	public Customer getCustomer() {
		return this.customer;
	}

	public void setCustomer(Customer customer) {
		this.customer = customer;
	}

	public Dictionary getDictionary1() {
		return this.dictionary1;
	}

	public void setDictionary1(Dictionary dictionary1) {
		this.dictionary1 = dictionary1;
	}

	public Dictionary getDictionary2() {
		return this.dictionary2;
	}

	public void setDictionary2(Dictionary dictionary2) {
		this.dictionary2 = dictionary2;
	}

	public Dictionary getDictionary3() {
		return this.dictionary3;
	}

	public void setDictionary3(Dictionary dictionary3) {
		this.dictionary3 = dictionary3;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

}